projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b731b1
)
Missing dynamic variable declarations in Calc
author
Mattias Engdegård
<mattiase@acm.org>
Tue, 19 Jan 2021 10:43:25 +0000
(11:43 +0100)
committer
Mattias Engdegård
<mattiase@acm.org>
Tue, 19 Jan 2021 15:11:51 +0000
(16:11 +0100)
* lisp/calc/calc-embed.el (calc-embedded-set-modes): Prevent
the-language and the-display-just from being lexically bound here,
because they may be assigned using 'set'.
lisp/calc/calc-embed.el
patch
|
blob
|
history
diff --git
a/lisp/calc/calc-embed.el
b/lisp/calc/calc-embed.el
index ea79bfa69a0a4243f55842c938a43715ce535a4e..fda0b4bbedb47c177799b24ac991984d02348fb8 100644
(file)
--- a/
lisp/calc/calc-embed.el
+++ b/
lisp/calc/calc-embed.el
@@
-651,6
+651,8
@@
The command \\[yank] can retrieve it from there."
(defvar calc-embed-prev-modes)
(defun calc-embedded-set-modes (gmodes modes local-modes &optional temp)
+ (defvar the-language)
+ (defvar the-display-just)
(let ((the-language (calc-embedded-language))
(the-display-just (calc-embedded-justify))
(v gmodes)